package com.liaogui.common.entity.userinfo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author Àî°Â¹é
 * @email liaogui1023@163.com
 * @date 2021-12-02 17:14:19
 */
@Data
@TableName("tb_user_info")
public class UserInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private String id;
	/**
	 * 
	 */
	private String name;
	/**
	 * 
	 */
	private String userName;
	/**
	 * 
	 */
	private String phone;
	/**
	 * 
	 */
	private String email;
	/**
	 * 
	 */
	private String password;
	/**
	 * 
	 */
	private String salt;
	/**
	 * 
	 */
	private String type;
	/**
	 * 
	 */
	private String createBy;
	/**
	 * 
	 */
	private Date createDate;
	/**
	 * 
	 */
	private String status;
	/**
	 * 
	 */
	private String delFlag;

	/**
	 * 密码加密 由电话号码+盐
	 * @return
	 */
	public String getCredentialsSalt() {
		return phone + salt;
	}
}
